package com.yunhe.portal.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: BannerInfoQueryCondition
 * @Description:
 * @author: GongDaCheng
 * @Date: 11:21 2021/10/22
 */
@Data
@ApiModel(value = "BannerInfoQueryCondition",description = "banner查询条件")
public class BannerInfoQueryCondition implements Serializable {

    private static final long serialVersionUID = 1988553553797700375L;

    @ApiModelProperty(value = "banner类型  Station 园区   Company 企业",required = true)
    private String bannerType;

    @ApiModelProperty(value = "标题",required = false)
    private String title;

    @ApiModelProperty(value = "项目id",hidden = true)
    private Long stationId;

    @ApiModelProperty(value = "真实园区id",required = false)
    private List<Long> realStationIds;

    @ApiModelProperty(value = "发布开始时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String startTime;

    @ApiModelProperty(value = "发布结束时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime;

    @ApiModelProperty(value = "当前页",required = true)
    private int page;

    @ApiModelProperty(value = "页面条数",required = true)
    private int size;
}
